package com.itheima.service.pms;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.core.PageInfo;
import com.itheima.pojo.pms.PmsProductCategory;
import com.itheima.pojo.pms.vo.PmsProductCategoryVo;
import com.itheima.pojo.pms.vo.PmsProductCategoryWithChildrenItemVo;

import java.util.List;


public interface PmsProductCategoryService extends IService<PmsProductCategory> {

    List<PmsProductCategory> listWithChildren();

    void updateShowStatus(List<Long> ids, int showStatus);

    void updateNavStatus(List<Long> ids, int navStatus);

    void updateProductCategory(Long id, PmsProductCategoryVo pmsProductCategoryVo);

    /**
     * 分页查询商品分类
     * @param parentId
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageInfo listByPage(Long parentId, Integer pageNum, Integer pageSize);
}
